package com.icart.entities;

import javax.persistence.Column;
import javax.persistence.Id;
import java.io.Serializable;

public class CuCusttcmeteitemEntityPK implements Serializable {
    private long tcoid;
    private long metaitemid;

    @Column(name = "tcoid")
    @Id
    public long getTcoid() {
        return tcoid;
    }

    public void setTcoid(long tcoid) {
        this.tcoid = tcoid;
    }

    @Column(name = "metaitemid")
    @Id
    public long getMetaitemid() {
        return metaitemid;
    }

    public void setMetaitemid(long metaitemid) {
        this.metaitemid = metaitemid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CuCusttcmeteitemEntityPK that = (CuCusttcmeteitemEntityPK) o;

        if (tcoid != that.tcoid) return false;
        if (metaitemid != that.metaitemid) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = (int) (tcoid ^ (tcoid >>> 32));
        result = 31 * result + (int) (metaitemid ^ (metaitemid >>> 32));
        return result;
    }
}
